package com.yf.exam.score.service;

import com.yf.exam.gpt.dashscope.GptDashScopeService;
import com.yf.exam.score.bean.ScoreGptAnswer;
import com.yf.exam.score.bean.ScoreGptRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author he
* @description 针对表【talk】的数据库操作Service实现
* @createDate 2023-11-21 09:53:01
*/
@Service
public class GptServiceImpl implements GptService {

    public static final  String API_KEY = "sk-5fb6a4e4f74a43c3bc4c17003f052f35";

    @Resource
    private GptDashScopeService gptDashScopeService;

    @Override
    public String answer(String message) {
        return null;
    }

    @Override
    public ScoreGptAnswer getGptScore(ScoreGptRequest gptRequest) {
        return gptDashScopeService.queryGptScore(API_KEY,gptRequest);
    }
}




